#ifndef LINKED_H_INCLUDED
#define LINKED_H_INCLUDED

#include <stdlib.h>
#include <stdbool.h>
#include <ucontext.h>
#include "util.h"

typedef struct linked {
    struct linked* next;
    struct linked* prev;
    ucontext_t* context;
    int id;
    int priority;
} linked_t;

linked_t* linked_create(ucontext_t* context, int priority);

#endif //LINKED_H_INCLUDED
